package com.bookStore.model;

import java.math.BigDecimal;

/**
 * OrderBook entity. @author MyEclipse Persistence Tools
 */

public class OrderBook implements java.io.Serializable {

	// Fields

	private Integer id;
	private Orders orders;
	private BigDecimal bookId;
	private BigDecimal quantity;
	private Double unitPrice;

	// Constructors

	/** default constructor */
	public OrderBook() {
	}

	/** full constructor */
	public OrderBook(Integer id, Orders orders, BigDecimal bookId,
			BigDecimal quantity, Double unitPrice) {
		this.id = id;
		this.orders = orders;
		this.bookId = bookId;
		this.quantity = quantity;
		this.unitPrice = unitPrice;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Orders getOrders() {
		return this.orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public BigDecimal getBookId() {
		return this.bookId;
	}

	public void setBookId(BigDecimal bookId) {
		this.bookId = bookId;
	}

	public BigDecimal getQuantity() {
		return this.quantity;
	}

	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	public Double getUnitPrice() {
		return this.unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}

}